import { createApp, Component } from 'vue'
import { createPinia } from 'pinia'
import { router } from './router'
import 'element-plus/dist/index.css'
import baseComponents from '@/components'
import App from './App.vue'

const app = createApp(App)

const p = createPinia()
app.use(p)
app.use(router)
baseComponents.forEach((c: Component) => app.component(String(c.name), c))
app.mount('#app')
